Skip to content

Comments

support regexp lookaround assertions in syntax files#4014

Closed
suchipi wants to merge 1 commit intomicro-editor:masterfrom
suchipi:regexp-lookaheadbehind
Closed

support regexp lookaround assertions in syntax files#4014
suchipi wants to merge 1 commit intomicro-editor:masterfrom
suchipi:regexp-lookaheadbehind

Conversation

@suchipi
Copy link

@suchipi suchipi commented Feb 19, 2026

this change makes syntax highlighting use dlclark/regexp2 instead of the standard library regexp package so that syntax files can use lookahead/lookbehind assertions.

in-buffer search is unchanged to avoid the UI freezing from bad lookbehinds

disclosure: this diff was generated by claude code

@JoeKar
Copy link
Member

JoeKar commented Feb 20, 2026

The reason why we didn't use it so far is the increased execution time, which isn't deterministic any longer.
At first the whole highlighter logic must be optimized (see #3127).

@suchipi
Copy link
Author

suchipi commented Feb 20, 2026

Makes sense. I'll close this, since post-optimization the codebase will have changed enough that this diff won't be relevant.

@suchipi suchipi closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants